package net.lahuobao.mall.entity.admin;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.SequenceGenerator;

/**   
 * @Title: Entity
 * @Description: 折扣明细
 * @author zhangdaihao
 * @date 2016-09-25 21:03:00
 * @version V1.0   
 *
 */
@Entity
@Table(name = "mall_subsidy_detail", schema = "lahuobao")
@DynamicUpdate(true)
@DynamicInsert(true)
@SuppressWarnings("serial")
public class MallSubsidyDetailEntity implements java.io.Serializable {
	/**id*/
	private java.lang.Integer id;
	/**补贴ID*/
	private java.lang.Integer subsidyid;
	/**补贴值*/
	private BigDecimal subsidyval;
	/**满减的最小金额*/
	private BigDecimal minmoney;
	/**满减的最大金额*/
	private BigDecimal maxmoney;
	
	/**
	 *方法: 取得java.lang.Integer
	 *@return: java.lang.Integer  id
	 */
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name ="ID",nullable=false,precision=10,scale=0)
	public java.lang.Integer getId(){
		return this.id;
	}

	/**
	 *方法: 设置java.lang.Integer
	 *@param: java.lang.Integer  id
	 */
	public void setId(java.lang.Integer id){
		this.id = id;
	}
	/**
	 *方法: 取得java.lang.Integer
	 *@return: java.lang.Integer  补贴ID
	 */
	@Column(name ="SUBSIDYID",nullable=false,precision=10,scale=0)
	public java.lang.Integer getSubsidyid(){
		return this.subsidyid;
	}

	/**
	 *方法: 设置java.lang.Integer
	 *@param: java.lang.Integer  补贴ID
	 */
	public void setSubsidyid(java.lang.Integer subsidyid){
		this.subsidyid = subsidyid;
	}
	/**
	 *方法: 取得BigDecimal
	 *@return: BigDecimal  补贴值
	 */
	@Column(name ="SUBSIDYVAL",nullable=false,precision=18,scale=2)
	public BigDecimal getSubsidyval(){
		return this.subsidyval;
	}

	/**
	 *方法: 设置BigDecimal
	 *@param: BigDecimal  补贴值
	 */
	public void setSubsidyval(BigDecimal subsidyval){
		this.subsidyval = subsidyval;
	}
	/**
	 *方法: 取得BigDecimal
	 *@return: BigDecimal  满减的最小金额
	 */
	@Column(name ="MINMONEY",nullable=false,precision=18,scale=2)
	public BigDecimal getMinmoney(){
		return this.minmoney;
	}

	/**
	 *方法: 设置BigDecimal
	 *@param: BigDecimal  满减的最小金额
	 */
	public void setMinmoney(BigDecimal minmoney){
		this.minmoney = minmoney;
	}
	/**
	 *方法: 取得BigDecimal
	 *@return: BigDecimal  满减的最大金额
	 */
	@Column(name ="MAXMONEY",nullable=false,precision=18,scale=2)
	public BigDecimal getMaxmoney(){
		return this.maxmoney;
	}

	/**
	 *方法: 设置BigDecimal
	 *@param: BigDecimal  满减的最大金额
	 */
	public void setMaxmoney(BigDecimal maxmoney){
		this.maxmoney = maxmoney;
	}
}
